﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace DTO
{
    
    public class Sach
    {
        public int _masach;
        public int MaSach
        {
            get { return _masach; }
            set { _masach = value; }
        }
        public string _maloai;
        public string MaLoai
        {
            get { return _maloai; }
            set { _maloai = value;}
        }
        public string _tensach;
        public string TenSach
        {
            get { return _tensach; }
            set { _tensach = value; }
        }
        public string _tacgia;
        public string Tacgia
        {
            get { return _tacgia; }
            set { _tacgia = value; }
        }
        public string _thuocnxb;
        public string ThuocNXB
        {
            get { return _thuocnxb; }
            set { _thuocnxb = value; }
        }
        public int _soluong;
        public int SoLuong
        {
            get { return _soluong; }
            set { _soluong = value; }
        }
        public string _donvitinh;
        public string DonViTinh
        {
            get { return _donvitinh; }
            set { _donvitinh = value; }
        }
        public int _dongia;
        public int DonGia
        {
            get { return _dongia; }
            set { _dongia = value; }
        }
        public int _soluongton;
        public int SoLuongTon
        {
            get { return _soluongton; }
            set { _soluongton = value; }
        }
        public Sach(int masach,string maloai,string tensach, string tacgia, string thuocnxb, int soluong, string donvitinh, int dongia, int soluongton)
        {
            MaSach = masach;
            MaLoai = maloai;
            TenSach = tensach;
            Tacgia = tacgia;
            SoLuong = soluong;
            ThuocNXB = thuocnxb;
            DonViTinh = donvitinh;
            DonGia = dongia;
            SoLuongTon = soluongton;
        }
    }
    public class LoaiSach
    {
        public string _maloai;
        public string MaLoai
        {
            get { return _maloai; }
            set { _maloai = value; }
        }
        public string _tenloai;
        public string TenLoai
        {
            get { return _tenloai; }
            set { _tenloai = value; }
        }
        public LoaiSach(string maloai, string tenloai)
        {
            MaLoai = maloai;
            TenLoai = tenloai;
        }
    }
    public class NhanVien
    {
        public string _manv;
        public string MaNV
        {
            get { return _manv; }
            set { _manv = value; }
        }
        public string _hotennv;
        public string HoTenNV
        {
            get { return _hotennv; }
            set { _hotennv = value; }
        }
        public string _gioitinh;
        public string GioiTinh
        {
            get { return _gioitinh; }
            set { _gioitinh = value; }
        }
        public DateTime _ngaysinh;
        public DateTime NgaySinh
        {
            get { return _ngaysinh; }
            set { _ngaysinh = value; }
        }
        public string _diachi;
        public string DiaChi
        {
            get { return _diachi; }
            set { _diachi = value; }
        }
        public string _cmnd;
        public string CMND
        {
            get { return _cmnd; }
            set { _cmnd = value; }
        }
        public string _sotaikhoan;
        public string SoTaiKhoan
        {
            get { return _sotaikhoan; }
            set { _sotaikhoan = value; }
        }
        public string _chucvu;
        public string ChucVu
        {
            get { return _chucvu; }
            set { _chucvu = value; }
        }
        public string _catruc;
        public string CaTruc
        {
            get { return _catruc; }
            set { _catruc = value; }
        }
        public string _sodienthoai;
        public string SoDienThoai
        {
            get { return _sodienthoai; }
            set { _sodienthoai = value; }
        }
        public string _email;
        public string Email
        {
            get { return _email; }
            set { _email = value; }
        }
        public int _sohdlap;
        public int SoHDLap
        {
            get { return _sohdlap; }
            set { _sohdlap = value; }
        }
        public int _soddhlap;
        public int SoDDHLap
        {
            get { return _soddhlap; }
            set { _soddhlap = value; }
        }
        public float _luongnv;
        public float LuongNV
        {
            get { return _luongnv; }
            set { _luongnv = value  ; }
        }
        public int _songaylam;
        public int SoNgayLam
        {
            get { return _songaylam; }
            set { _songaylam = value; }
        }
        public NhanVien(string manv, string hotennv, string gioitinh, DateTime ngaysinh, string diachi, string cmnd, string sotaikhoan, string chucvu, string catruc, string sodienthoai, string email, int sohdlap, int soddhlap,float luongnv,int songaylam)
        {
            MaNV = manv;
            HoTenNV = hotennv;
            GioiTinh = gioitinh;
            NgaySinh = ngaysinh;
            DiaChi = diachi;
            CMND = cmnd;
            SoTaiKhoan = sotaikhoan;
            CaTruc = catruc;
            ChucVu = chucvu;
            SoDienThoai = sodienthoai;
            Email = email;
            SoHDLap = sohdlap;
            SoDDHLap = soddhlap;
            LuongNV = luongnv;
            SoNgayLam = songaylam;
        }
    }
    public class KhachHang
    {
        public int _makh;
        public int MaKH
        {
            get { return _makh; }
            set { _makh = value; }
        }
        public string _hotenkh;
        public string HoTenKH
        {
            get { return _hotenkh; }
            set { _hotenkh = value; }
        }
        public string _gioitinh;
        public string GioiTinh
        {
            get { return _gioitinh; }
            set { _gioitinh = value; }
        }
        public string _diachi;
        public string Diachi
        {
            get { return _diachi; }
            set { _diachi = value; }
        }
        public string _email;
        public string Email
        {
            get { return _email; }
            set { _email = value; }
        }
        public string _sodt;
        public string Sodienthoai
        {
            get { return _sodt; }
            set { _sodt = value; }
        }
        public string _sotaikhoan;
        public string SoTaiKhoan
        {
            get { return _sotaikhoan; }
            set { _sotaikhoan = value; }
        }
        public int _sodiem;
        public int SoDiem
        {
            get { return _sodiem; }
            set { _sodiem = value; }
        }
        public KhachHang(int makh,string hotenkh, string diachi, string email, int sodiem, string gioitinh, string sodt, string sotk)
        {
            MaKH = makh;
            Email = email;
            GioiTinh = gioitinh;
            HoTenKH = hotenkh;
            Diachi = diachi;
            SoTaiKhoan = sotk;
            Sodienthoai = sodt;
            SoDiem = sodiem;

        }

    }
    public class HoaDon
    {
        public int _mahd;
        public int MaHD
        {
            get { return _mahd; }
            set { _mahd = value; }
        }
        public int _tongtien;
        public int TongTien
        {
            get { return _tongtien; }
            set { _tongtien = value; }
        }
        public int _thanhtien;
        public int ThanhTien
        {
            get { return _thanhtien; }
            set { _thanhtien = value; }
        }
        public DateTime _ngaylap;
        public DateTime NgayLap
        {
            get { return _ngaylap; }
            set { _ngaylap = value; }
        }
        public string _NVlap;
        public string NhanVienLap
        {
            get { return _NVlap; }
            set { _NVlap = value; }
        }
        public int _makh;
        public int MaKH
        {
            get { return _makh; }
            set { _makh = value; }
        }
        public int _manv;
        public int MaNV
        {
            get { return _manv; }
            set { _manv = value; }
        }
        public HoaDon(int mahd, int makh, int manv, int tongtien, int thanhtien, DateTime ngaylap, string nhanvienlap)
        {
            MaHD = mahd;
            MaNV = manv;
            MaKH = makh;
            TongTien = tongtien;
            ThanhTien = thanhtien;
            NhanVienLap = nhanvienlap;
            NgayLap = ngaylap;
        }
    }
    public class DonDatHang
    {
        public int _maddh;
        public int MaDDH
        {
            get { return _maddh; }
            set { _maddh = value; }
        }
        public int _manv;
        public int MaNV
        {
            get { return _manv; }
            set { _manv = value; }
        }
        public int _manxb;
        public int MaNXB
        {
            get { return _manxb; }
            set { _manxb = value; }
        }
        public int _tongtien;
        public int TongTien
        {
            get { return _tongtien; }
            set { _tongtien = value; }
        }
        public int _thanhtien;
        public int ThanhTien
        {
            get { return _thanhtien; }
            set { _thanhtien = value; }
        }
        public DateTime _ngaylapddh;
        public DateTime NgayLapDDH
        {
            get { return _ngaylapddh; }
            set { _ngaylapddh = value; }
        }
        public string _tennvlap;
        public string TenNVLap
        {
            get { return _tennvlap; }
            set { _tennvlap = value; }
        }
        public DonDatHang(int maddh, int manv, int manxb, int tongtien, int thanhtien, DateTime ngaylapddh, string nhanvienlap)
        {
            MaDDH = maddh;
            MaNXB = manxb;
            MaNV = manv;
            TongTien = tongtien;
            ThanhTien = thanhtien;
            NgayLapDDH = ngaylapddh;
            TenNVLap = nhanvienlap;
        }
    }
    public class NhaXuatBan
    {
        public int _manxb;
        public int MaNXB
        {
            get { return _manxb; }
            set { _manxb = value; }
        }
        public string _tennxb;
        public string TenNXB
        {
            get { return _tennxb; }
            set { _tennxb = value; }
        }
        public string _diachi;
        public string DiaChi
        {
            get { return _diachi; }
            set { _diachi = value; }
        }
        public string _sdt;
        public string SoDienThoai
        {
            get { return _sdt; }
            set { _sdt = value; }
        }
        public string _sofax;
        public string FAX
        {
            get { return _sofax; }
            set { _sofax = value; }
        }
        public string _website;
        public string Website
        {
            get { return _website; }
            set { _website = value; }
        }
        public string _sotaikhoan;
        public string SoTaiKhoan
        {
            get { return _sotaikhoan; }
            set { _sotaikhoan = value; }
        }
        public NhaXuatBan(int manxb, string tennxb, string diachi, string sodienthoai, string sofax, string website, string sotaikhoan)
        {
            MaNXB = manxb;
            DiaChi = diachi;
            SoDienThoai = sodienthoai;
            SoTaiKhoan = sotaikhoan;
            TenNXB = tennxb;
            Website = website;
            FAX = sofax;
        }

    }
    public class ChiTietHoaDon
    {
        public int _mahd;
        public int MaHD
        {
            get { return _mahd; }
            set { _mahd = value; }
        }
        public int _masach;
        public int MaSach
        {
            get { return _masach; }
            set { _masach = value; }
        }
        public int _soluong;
        public int SoLuong
        {
            get { return _soluong; }
            set { _soluong = value; }
        }
        public int _dongia;
        public int DonGia
        {
            get { return _dongia; }
            set { _dongia = value; }
        }
        public ChiTietHoaDon(int masach, int mahd, int soluong, int dongia)
        {
            MaSach = masach;
            MaHD = mahd;
            SoLuong = soluong;
            DonGia = dongia;
        }
    }
    public class ChiTietDonDatHang
    {
        public int _maddh;
        public int MaDDH
        {
            get { return _maddh; }
            set { _maddh = value; }
        }
        public int _masach;
        public int MaSach
        {
            get { return _masach; }
            set { _masach = value; }
        }
        public int _soluong;
        public int SoLuong
        {
            get { return _soluong; }
            set { _soluong = value; }
        }
        public int _dongia;
        public int DonGia
        {
            get { return _dongia; }
            set { _dongia = value; }
        }
        public string _tennxb;
        public string TenNXB
        {
            get { return _tennxb; }
            set { _tennxb = value; }
        }
        public ChiTietDonDatHang(int maddh, int masach, int soluong, int dongia, string tennxb)
        {
            MaDDH = maddh;
            MaSach = masach;
            DonGia = dongia;
            SoLuong = soluong;
            TenNXB = tennxb;
        }
    }
}
